package com.wise.summer.v1.cms.content.pagedecorate;

import com.wise.entities.content.Decorate;
import com.wise.framework.annotations.ApiInfo;
import com.wise.framework.annotations.Publish;
import com.wise.framework.annotations.validation.NotBlank;
import com.wise.framework.summer.BasicSummer;
import lombok.Getter;
import lombok.Setter;

import static com.wise.model.content.ContentErrMsgs.Err_000500000001;

@Getter
@Setter
@Publish
@ApiInfo("编辑微页面")
public class UpdatePageDecorateById extends BasicSummer<Decorate> {

    @NotBlank(msg = Err_000500000001)
    private String id;
    /**
     * 别名
     */
    private String alias;
    /**
     * content
     * 这个为草稿，由后台负责编辑，不会在前台显示，相当于一个草稿的作用
     * 前台点击保存，则保存为草稿
     */
    private String content;
    /**
     * state 0 or 1
     * 0 为 content
     * 1 为 publicContent
     */
    private Integer state = 0;
    /**
     * title
     */
    private String title;
    /**
     *img
     */
    private String img;

    /**
     * module
     */
    private String module;

    private String talk;

    @ApiInfo("seo_title")
    private String seoTitle;

    @ApiInfo("关键词描述")
    private String seoDescribe;

    @ApiInfo("网页标题")
    private String pageTitle;
}
